package com.livesource.client.web.liveSource;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.livesource.client.LiveSourceGlobalVariables;

public class LiveSourcePage extends VerticalPanel {

	public static VerticalPanel vpProjectBacklog = new VerticalPanel();

	public LiveSourcePage() {

		this.setSpacing(20);

		this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		HorizontalPanel hp1 = new HorizontalPanel();

		Image logo = new Image(GWT.getModuleName() + "/images/logo.jpg");
		logo.setWidth("300px");

		hp1.add(logo);

		Label space = new Label(" ");
		space.setWidth("80px");
		hp1.add(space);

		HTML html = new HTML(
				"<center><b><font size=4><br>Development As A Service</font></b> "
						+ "<br><font size=3>Version "
						+ LiveSourceGlobalVariables.systemVersion
						+ "</font></center>");
		hp1.add(html);

		this.add(hp1);

		HorizontalPanel hpMain = new HorizontalPanel();

		hpMain.setSize("100%", "100%");

		hpMain.setSpacing(20);

		hpMain.add(new HowToUse());

		hpMain.add(new BlogArchiveList());

		this.add(hpMain);

		this.add(new ButtonProjectInfo());
	}
}
